package com.tsu.commensense;

import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.view.LayoutInflater;
import android.view.View;
import android.app.Activity;
/**
 * The page is navigation page.
 * @author dds
 *
 */
public class MainActivity extends Activity {
	
	private ViewPager viewPager;
	private int viewsID[] = {R.layout.navigation1,R.layout.navigation2,R.layout.navigation3};
	private LayoutInflater layoutInflater;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		layoutInflater = getLayoutInflater();
		viewPager = (ViewPager) findViewById(R.id.pager);
		for(int i=0;i<3;i++){
			viewPager.addView(layoutInflater.inflate(viewsID[i],null));
		}
		
	}
	
	
}
